package com.designpattern.factory.simplefactory;

/**
 * @author liyanhao
 * @Date 2023-02-06 23:55
 */
public class BJOrderPizza extends OrderPizza {

    public BJOrderPizza(SimpleFactory simpleFactory) {
        super(simpleFactory);
    }

    @Override
    Pizza createPizza(String orderType) {
        Pizza pizza = null;
        if ("cheese".equals(orderType)) {
            pizza = new BJCheesePizza();
        } else if("pepper".equals(orderType)){
            pizza = new BJPepperPizza();
        }
        //TODO AUTO-generated method stub
        return pizza;
    }
}
